package com.sh.ssao.lottery.config;

import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;


//@EnableTransactionManagement
@Configurable //配置类
//@MapperScan("com.cn.mapper")
public class DmsMybatisPlusConfig {

    /**
     * 注册乐观锁
     */
    @Bean
    public OptimisticLockerInnerInterceptor optimisticLockerInnerInterceptor(){
        return new OptimisticLockerInnerInterceptor();
    }

}
